<?php

namespace app\shop\controller\contract;
use app\shop\service\Contract as ContractService;
/**
 * 公司介绍
 */
class Contract
{
    public function tplList(ContractService $ContractService){
        $data = input('post.');
        $result = $ContractService->tplList($data);
        return $result;
    }
    public function addTpl(ContractService $ContractService){
        $data = input('post.');
        $result = $ContractService->addTpl($data);
        return $result;
    }
    public function editTpl(ContractService $ContractService){
        $data = input('post.');
        $result = $ContractService->editTpl($data);
        return $result;
    }
    public function deleteTpl(ContractService $ContractService){
        $id = input('post.id');
        $result = $ContractService->deleteTpl($id);
        return $result;
    }
    public function tplForm(ContractService $ContractService){
        $id = input('id');
        $result = $ContractService->tplForm($id);
        return $result;
    }
    public function add(ContractService $ContractService){
        $data = input('post.');
        $result = $ContractService->add($data);
        return $result;
    }
    public function edit(ContractService $ContractService){
        $data = input('post.');
        $result = $ContractService->edit($data);
        return $result;
    }
    public function pdf(ContractService $ContractService){
        $id = input('id');
        $result = $ContractService->createPdf($id);
        return $result;
    }
    public function sign(ContractService $ContractService){
        $data = input('post.');
        $result = $ContractService->sign($data);
        return $result;
    }
    public function list(ContractService $ContractService){
        $data = input('post.');
        $result = $ContractService->list($data);
        return $result;
    }
    public function info(ContractService $ContractService){
        $id = input('id');
        $result = $ContractService->info($id);
        return $result;
    }
}